package com.twu.biblioteca;
public class Movie {
    private String name;
    private int year;
    private String director;
    private String rating="N/A";
    public Movie(String name,int year, String director){
        this.name=name;
        this.year=year;
        this.director=director;
    }
    public Movie(String name,int year, String director,Integer rating){
        this.name=name;
        this.year=year;
        this.director=director;
        if (rating > 0 && rating <= 10)
            this.rating= Integer.toString(rating);
    }
    public String getName() {
        return name;
    }

    public Integer getYear() {
        return year;
    }

    public String getRating() {
        return rating;
    }

    public String getDirector() {

        return director;
    }


}
